/*
 * 文件名：Constants.java
 * 版权：Copyright by www.huawei.com
 * 描述：
 * 修改人：Administrator
 * 修改时间：2016年6月14日
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
 */

package com.zcsy.commons.constants;

import com.zcsy.commons.util.Globals;

/**
 * @Title: Constants.java
 * @Package： com.zcsy.manage.owner.common 
 * @Description: 业主常量类（ownerConn内）
 * @author liuziyu liuziyuwri@foxmail.com
 * @Copyright: 2016 武汉恒数利通软件有限公司 All rights reserved.
 * @date 2016年6月23日
 * @version 1.0
 * @see JDK1.7.0_75
 * @since
 */
public class OwnerConstants {
	
	/** 配送报表ip */
	public static final String IP_DIS_REPORTS_EXCEL = "http://192.168.2.127:8080";
	
	/** 
	 * 返回码定义
	 */
	public static final int RESULT_CODE_SUCCESS = 0;       //正确码
	public static final int RESULT_PASSWORD_FALSE = -1;    //密码错误
	public static final int RESULT_EXCEPTION_FALSE = -1;   //网络异常
	public static final int RESULT_EXSIT_PHONE_FALSE = -1; //手机号已被注册
	public static final int USER_NOT_EXIST = -1;           //账号不存在
	public static final int PHONE_NOT_EXIST = -1;          //手机不存在
	public static final int USER_FORBID = -1;              //该业主被禁用
	public static final int RESULT_CODE_FALSE = -1;        //数据读取失败
	
	public static final int ORDER_NEED_PAY     = 1;        // 需要支付的订单
	public static final int ORDER_NOT_NEED_PAY = 0;        // 不需要支付的订单
	
	
	/** 
	 * 业主类型
	 */
	public static final int OWNER_USER_TYPE = 5;      //业主类型
	
	/** 
	 * 业主状态
	 */
	public static final int OWNER_USER_STATE = 1;      //业主启用
	
	/** 
	 * 新增业主状态
	 */
	public static final int USER_STATE = 1;      //新增业主状态
	
	/** 
     * 获取通知信息   
     */
    public static final int GET_INFO_SUCCESS = 0;  //获取通知信息成功
    public static final int GET_INFO_FALSE = -1;  //获取通知信息失败
    
    /** 
     * 获取通知列表   
     */
    public static final int GET_INFOLIST_SUCCESS = 0;  //获取通知信息列表成功
    public static final int GET_INFOLIST_FALSE = -1;   //获取通知信息列表失败

    /** 
     * 获取社区政务详情
     */
    public static final int GET_CELLMANUALDETAIL_SUCCESS = 0; //获取社区政务详情成功
    public static final int GET_CELLMANUALDETAIL_FALSE   = -1; //获取社区政务详情失败
    

    /** 
     * 获取社区政务列表
     */
    public static final int GET_CELLMANUAL_SUCCESS = 0; //获取社区政务详情成功
    public static final int GET_CELLMANUAL_FALSE   = -1; //获取社区政务详情失败
    
    /** 
     * 获取便民黄页列表
     */
    public static final int GET_YELLOWPAGE_SUCCESS = 0; //获取便民黄页列表成功
    public static final int GET_YELLOWPAGE_FALSE   = -1;  //获取便民黄页列表失败
	
	/**
	 * 绑定手机,忘记密码
	 */
	public static final int PHONE_BIND_SUCCESS = 0;  //绑定手机成功
	public static final int PHONE_BIND_FALSE   = -1;  //绑定手机成功
	public static final int CODE_VERIFY_SUCCESS = 0;  //绑定手机成功
	public static final int PHONE_ALREADY_BIND = -1;  //手机号早已被绑定
	public static final int CODE_IS_INVALIDE = -2;  //验证码失效
	public static final int CODE_IS_FALSE = -3;  //输入验证码错误
	public static final int PHONE_NOT_BIND_ACCOUNT = -1;  //手机号没有绑定账号
	
	/**
	 * 获取手机验证码
	 */
	public static final int GET_CODE_SUCCESS = 0;  //成功获取验证码
	public static final int PHONE_NOT_WRITE = -1;  //手机号未填写
	
	/**
	 * 业主房屋状态
	 */
	public static final int NEWAPPLY_HOUSE_STATE  = 1;  //新申请
	public static final int NORMAL_HOUSE_STATE    = 2;  //正常
	public static final int FORBID_HOUSE_STATE    = 3;  //禁用
	public static final int NOPASS_HOUSE_STATE    = 4;  //审核未通过
	public static final int NOBOUND_HOUSE_STATE   = 5;  //已解绑
	
	/**
	 * 操作类型，1找回密码2绑定手机3注册
	 */
	public static final int FIND_PASSWORD         = 1;  //找回密码
	public static final int BOUND_PHONE           = 2;  //绑定手机
	public static final int REGISTER              = 3;  //注册
	public static final int IDENTIFY_OLD_PHONE    = 4;  //验证原手机号
	
	/**
	 * operateType 操作类型，1收藏，2删除收藏
	 */
	public static final int ADD_COLLECTION = 1;  //收藏
	public static final int DELETE_COLLECTION   = 2;  //删除收藏
	
	/**
	 * 注册
	 */
	public static final int OWNER_REGISTER_SUCCESS = 0;  //业主注册成功
	public static final int OWNER_REGISTER_FALSE = 1;    //业主注册失败
	public static final int HOUSE_REGISTER_SUCCESS = 0;  //房屋注册成功
	public static final int HOUSE_REGISTER_FALSE = 1;    //房屋注册失败
	
	/**
	 * 修改密码
	 */
	public static final int MODIFY_PASSWORD_SUCCESS = 0;  //修改密码成功
	public static final int OLD_PASSWORD_FALSE = -1; //旧密码输入错误
	public static final int CONFIRM_PASSWORD_FALSE = -2; //两次密码输入不一致
	
    /**
     * 获取个人信息状态
     */
    public static final int GET_USERINFO_SUCCESS = 0;  //获取个人信息成功
    public static final int GET_USERINFO_FALSE = -1;  //获取个人信息失败
    
    /**
     * 获取我的报修列表
     */
    public static final int GET_REPAIRINFO_SUCCESS = 0;  //获取我的报修列表成功
    public static final int GET_REPAIRINFO_FALSE = -1;   //获取我的报修列表失败

    /**
     * 判断token是否有效：-4 帐号在其他设备登录；-5 用户授权失效请重新登录
     */
    public static final int TOKEN_CHANGED = -4;  //帐号在其他设备登录
    public static final int TOKEN_EXPIRE  = -5;  //用户授权失效请重新登录
    
    /**
     * regionType=1获取小区、区域列表，regionType=0只获取小区列表
     */
    public static final int CELL_TYPE         = 1;  //获取小区、区域列表
    public static final int CELL_REGION_TYPE  = 0;  //只获取小区列表
    
    /**
     * 获取我的报修详情
     */
    public static final int GET_REPAIRDETAIL_SUCCESS = 0; //获取我的报修详情成功
    public static final int GET_REPAIRDETAIL_FALSE = -1; //获取我的报修详情成功
    
    /**
     * 分页大小
     */
    public static final int PAGE_SIZE  = 10; //每页大小
    public static final int PAGE_NO    = 1; //默认首页 
    
    /**
     * 获取缴费说明url
     */
    public static final int GET_PAYMENTURL_SUCCESS = 0;  //获取paymentUrl成功
    public static final int GET_PAYMENTURL_FALSE = -1;   //获取paymentUrl失败
    
    /**
     * 获取发票发票须知url
     */
    public static final int GET_INVOICEURL_SUCCESS = 0;  //获取发票发票须知url成功
    public static final int GET_INVOICEURL_FALSE = -1;   //获取发票发票须知url失败
    
    /**
     * 查询物业缴费信息
     */
    public static final int GET_SUCCESS = 0;  //查询物业缴费信息成功
    
    /**
     * 物业缴费单操作人类型
     */
    public static final int OPERATOR_TYPE_PROPERTY = 1;  //物业
    public static final int OPERATOR_TYPE_OWNER = 2;  //业主
    
    /**
     * 发票类型
     */
    public static final int INVOICE_NO_NEED= 0;  //不需要
    public static final int INVOICE_PERSON = 1;  //个人
    
    /**
     * operateType 操作类型：1增加， -1减少，0指定
     */
    public static final int ADD_AMOUNT    = 1;  //1增加
    public static final int SET_AMOUNT    = 0;  //0指定
    public static final int REDUCE_AMOUNT = -1; //-1减少
    public static final int BASE_AMOUNT   = 1;  //数量1
    
    /**
     * 物业缴费状态
     */
    public static final int STATE_PAYING_SUCCESS = 0;  //缴费成功
    public static final int STATE_OWING_MONEY    = 1;  //欠费
    public static final int STATE_PRE_PAYING     = 3;  //预交费
    public static final int STATE_DELETE         = 4;  //已删除
    
    /**
     * 提交物业缴费
     */
    public static final int STATE_SUBMIT_SUCCESS = 0;  //缴费成功
    public static final int STATE_MONTH_ERROR    = -1;  //缴费的月数小于欠费的月数
    public static final int STATE_RATE_ERROR     = -2;  //未查询到物业费倍率
    
    /**
     * 物业账单详情表生成方式
     */
    public static final int BILL_DETAIL_INITIALIZATION_GENERATE = 0;  //初始化生成
    public static final int BILL_DETAIL_TIMING_GENERATE         = 1;  //定时任务生成
    public static final int BILL_DETAIL_BACKSTAGE_IMPORT        = 2;  //后台导入生成
    public static final int BILL_DETAIL_PRE_PAYING              = 3;  //预交费
    
    /**
     * 通用返回wap页面URL
     */
    public static final int GET_WAP_TYPE_PARKING_PAY_INFO      = 1;  //停车缴费说明
    public static final int GET_WAP_TYPE_PARKING_INVOICE_INFO  = 2;  //停车缴费发票须知
    public static final int GET_WAP_TYPE_PROPERTY_FEE_INFO     = 3;  //物业缴费说明
    public static final int GET_WAP_TYPE_PROPERTY_INVOICE_INFO = 4;  //物业缴费发票须知
    public static final int GET_WAP_TYPE_TERMS_AND_RULES       = 5;  //条款与规则
    public static final int GET_WAP_TYPE_ABOUTUS               = 6;  //关于我们
    public static final int GET_WAP_TYPE_HELP                  = 7;  //帮助手册
    public static final int GET_WAP_GOODS_COMMENT              = 8;  //商品评价
    public static final int GET_WAP_REGISTER_PROTOCOL          = 9;  //注册协议
    public static final int GET_WAP_INTEGRAL_INFO              = 10;  //积分说明
    public static final int GET_WAP_SIGN_INFO                  = 11;  //签到说明
    public static final int GET_WAP_CELL_INFO                  = 12;  //小区通知
    public static final int GET_OPEN_SHOP                      = 13;  //我要开店wap页面
    
    public static final String GET_WAP_URL_PARKING_PAY_INFO      = "www.baidu.com";  //停车缴费说明url
    public static final String GET_WAP_URL_PARKING_INVOICE_INFO  = "www.sina.com";  //停车缴费发票须知url
    public static final String GET_WAP_URL_PROPERTY_FEE_INFO     = "www.163.com";  //物业缴费说明url
    public static final String GET_WAP_URL_PROPERTY_INVOICE_INFO = "www.qq.com";  //物业缴费发票须知url
    
    /**
     * 0:用户信息修改成功 1：用户信息修改失败
     */
    public static final int UPDATE_INFO_SUCCESS  = 0;   //用户信息修改成功
    public static final int UPDATE_INFO_FALSE    = -1;  //用户信息修改失败
    
    /**
     * 投诉建议恢复状态：0未回复,1已回复,2已评价
     */
    public static final int COMPLAIN_STATE_NOREPELY  = 0;   //0未回复
    public static final int COMPLAIN_STATE_ISREPELIED  = 1;   //1已回复
    public static final int COMPLAIN_STATE_ISCOMMENT  = 2;   //2已评价
    
    /**
     * 投诉回复类型:1平台回复 2业主评价
     */
    public static final int PLATFORM_REPLY  = 1;   //1平台回复
    public static final int OWNER_REPLY  = 2;      //2业主评价
    
    /**
     * 1:信息插入成功 0：信息插入失败
     */
    public static final int INSERT_SUCCESS  = 1;   //信息插入成功
    public static final int INSERT_FALSE    = 0;  //信息插入失败
    
    /**
     * 1:信息插入成功 0：信息插入失败
     */
    public static final int UPDATE_SUCCESS  = 1;   //信息更新成功
    public static final int UPDATE_FALSE    = 0;  //信息更新失败
    
    /**
     * 1:信息删除成功 0：信息删除失败
     */
    public static final int DELETE_SUCCESS  = 1;   //信息删除成功
    public static final int DELETE_FALSE    = 0;   //信息删除失败
    
    /**
     * 图标类型：0首页小图标 1店铺分类小图标
     */
    public static final int INDEX_IMG  = 0;   //首页小图标类型
    public static final int MALL_IMG   = 1;   //商城小图标类型
    
    /**
     * banner图类型：1：获取业主首页banner图   2：获取商城banner图  3：店铺banner图（漏掉的再补充）
     */
    public static final int OWNER_INDEX_BANNER  = 1;   //业主首页banner图 
    public static final int OWNER_GOODS_BANNER  = 2;   //商城banner图 
    public static final int OWNER_SHOP_BANNER   = 3;   //店铺banner图 
    
    
    /**
     * 查询无数据
     */
    public static final int NO_RECORD  = 0;   //无数据
    
    /**
     * 初始化未读条数为0
     */
    public static final int INIT_UNREADCOUNT  = 0;   //初始化未读条数为0
    
    /**
     * 商品类型:1正常，2积分，3秒杀
     */
    public static final int GOODS_TYPE_NORMAL    = 1;   //店铺商品
    public static final int GOODS_TYPE_INTEGRAL  = 2;   //积分商品
    public static final int GOODS_TYPE_SECKILL   = 3;   //秒杀商品
    
    /**
     * 推送消息分类
     */
    public static final int ORDER_STATE_DISTRIBUTING = 3; //配送中
    
    /**
     * 用户收货默认地址
     */
    public static final int DEFAULT_ADDRESS     = 1; //默认地址
    public static final int NOT_DEFAULT_ADDRESS = 0; //普通地址
    
    /**
     * 图文混排的描述使用wap连接
     */
    public static final String WAP_URL = Globals.getConfig("WAP_URL");  //图文混排的描述使用wap连接
    
    /**
     * 积分变更名称
     */
    public static final String INTEGRAL_REGISTER = "register";   //注册
    
	/** 
	 * 商品搜索排序
	 */
	public static final int GOODS_SEARCH_SORT_TYPE = 0;      //默认排序
    
    /**
     * 订单状态：0待付款，4已完成，5已取消，6退款申请，10退货申请
     */
	public static final int NO_PAY_ORDER = 0;                //待付款订单
	public static final int WAIT_CONFIRM_ORDER = 1;          //待确认订单
    public static final int FINISH_ORDER = 4;                //已完成订单
    public static final int DROP_ORDER = 5;                  //取消订单
    public static final int APPLY_REFUND_ORDER = 6;          //申请退款
    public static final int APPLY_RETURN_GOODS_ORDER = 10;   //申请退货
    
	/** 
	 * 商品库存
	 */
    public static final int NO_GOODS_STOCK = 0;   //商品库存为0
    
    /** 
     * 购物车类型
     */
    public static final int CART_STATE_NORMAL  = 1;   //手动加入购物车
    public static final int CART_STATE_FROMBUY = 2;   //来自立即购买
    
    /** 
     * 商品库存
     */
    public static final int NO_ENOUGH_GOODS  = -1;   //商品库存不足
    
    /** 
     * 车牌绑定房屋
     */
    public static final int CAR_NUMBER_BOUND    = 1;   //正常绑定
    public static final int CAR_NUMBER_UNBOUND  = 0;   //解绑
    
    /**
     * 请求成功
     */
    public static final int REQUEST_SUCCESS = 0;
    
    /**
     * 客户端类型为空
     */
    public static final int APP_TYPE_NULL = -1;
    
    /**
     * 客户端不存在
     */
    public static final int APP_NOT_EXIST = -2;
    
    /**
     * 没有邮费
     */
    public static final int NOPOSTEAGE = 0;
    
    /**
     * 订单等级1：父订单    2子订单
     */
    public static final int FIRST_LEVEL_ORDER   = 1;     //父订单
    public static final int SECOND_LEVEL_ORDER  = 2;     //子订单
    
    /**
     * 没有子订单的订单父id
     */
    public static final String ORDER_PARENTID   = "0";   //没有子订单的订单父id
    
    /**
     * 是否需要配送 1：是    0：否
     */
    public static final int IS_NEED_DISTRIBUTE       = 1;     //需要配送
    public static final int IS_NOT_NEED_DISTRIBUTE   = 0;     //不需要配送
    
    /**
     * 是否自提 1：是    0：否
     */
    public static final int IS_BYSELF       = 1;     //自提
    public static final int IS_NOT_BYSELF   = 0;     //配送
    
    /**
     * 初始化运费为0
     */
    public static final int INIT_CARRIAGE   = 0;     //初始化运费为0
    
    /** 
     * 业主app信鸽密钥
     */
    public static final String ACCESSIDANDROID = "2100208198"; // Android应用名称：OWNERCONN-ANDROID
    public static final String ACCESSIDIOS = "2200208088"; // IOS应用名称：OWNERCONN-IOS
    public static final String SECRETKEYANDROID = "d5a1873c6a10ee3bd0d26537aee2dbeb"; // Android应用名称：OWNERCONN-ANDROID
    public static final String SECRETKEYIOS = "17cbcd0bbf2d3f90bef58e2082e8015f"; // IOS应用名称：OWNERCONN-IOS 
    
    
    /**
     * 初始化秒杀商品查询顺序1:按默认顺序排序
     */
    public static final int INIT_ORDER   = 1;     //1:按默认顺序排序
    
    /**
     * 秒杀商品类型1:正在进行中 2：即将开始
     */
    public static final int SECKILL_ON_GOING   = 1;     //1:正在进行中
    
    /**
     * 平台优惠券是否已领取1:已领取 0：未领取
     */
    public static final int COUPON_IS_GOT   = 1;     //1:已领取
    public static final int COUPON_IS_NOT_GOT   = 0;     //1:未领取
    
    /**
     * 优惠券状态 2：已下发
     */
    public static final int COUPON_IS_SEND   = 2;     //2:已下发
    
    /**
     * 停车费到期提醒状态 1:未到期 2：即将到期 3：已到期
     */
    public static final int FARAWAY_TO_ENDDAYS = 1;
    public static final int CLOSE_TO_ENDDAYS = 2;
    public static final int BEYOND_ENDDAYS = 3;
    
    /**
     * 停车费到期时间限定
     */
    public static final int CLOSE_TO_ENDDAYS_TIME = 30;
    public static final int IS_ENDDAYS_TIME = 0;
    
    /**
     * 商品收藏状态
     */
    public static final int IS_COLLECTION = 1;
    public static final int IS_NOT_COLLECTION = 0;
    
    /**
     * 图片信息表中的对象类型
     */
    public static final int IMG_GOODS = 1;
    public static final int IMG_GOODS_COMMENT = 2;
    public static final int IMG_REPAIR = 3;
    public static final int IMG_SUGESTION = 4;
    public static final int IMG_CELL_LOGO = 5;
    
    /**
     * 小区通知未读
     */
    public static final int NOT_READ = 0;
    
    /**
     *  图片上传类型：1物业报修2物业投诉
     */
    public static final int PROPERTYBILL_REPAIR = 1;
    public static final int PROPERTYBILL_COMPLAINS = 2;
    
    /**
     *  报修状态：0待受理,1处理中,2维修完成，3已评价，4审核不通过
     */
    public static final int SUBMIT_REPAIR_STATE = 0;
}
